package cn.silver.module.system.domain;

import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.annotation.TableField;
import cn.silver.framework.mybatis.enums.SearchTypeEnums;
import cn.silver.framework.mybatis.domain.BusEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 岗位表 sys_post
 *
 * @author Silver Zhou
 */

@Data
@Table(name = "sys_post")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "SysPost", title = "岗位信息对象")
public class SysPost extends BusEntity {

    /**
     * 岗位编码
     */
    @Schema(title = "岗位编码")
    @TableField(name = "code", searchType = SearchTypeEnums.LIKE)
    private String code;

    /**
     * 岗位名称
     */
    @Schema(title = "岗位名称")
    @TableField(name = "name", searchType = SearchTypeEnums.LIKE)
    private String name;

    /**
     * 岗位名称
     */
    @Schema(title = "岗位类型")
    @TableField(name = "type", searchType = SearchTypeEnums.EQ)
    private String type;

    /**
     * 岗位排序
     */
    @Schema(title = "序号")
    private Integer sort;

    /**
     * 状态（0正常 1停用）
     */
    @Schema(title = "岗位状态")
    @TableField(name = "status", searchType = SearchTypeEnums.EQ)
    private String status;

}
